﻿using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FileToVideo.AddFunc
{
    /// <summary>
    /// 颜色方案追加
    /// </summary>
    public static class ColorAdd
    {
        /// <summary>
        /// 将颜色转换为 OpenCvSharp 的 Scalar 颜色类型
        /// </summary>
        /// <param name="color"></param>
        /// <returns></returns>
        public static Scalar ToScalar(this Color color)
        {
            return new Scalar(color.G, color.B, color.R);
        }
    }
}
